package com.sharding.demo.controller;


import com.sharding.demo.mapper.TestMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequiredArgsConstructor
@Slf4j
@RequestMapping("/test")
public class TestController {

    private final TestMapper testMapper;

    @GetMapping
    public Map test() {
        Map<String, String> test = testMapper.getTest();
        return test;
    }
}
